import javax.xml.bind.JAXBException;

import ylesanded.feed.GoogleGroup;
import junit.framework.TestCase;


public class googleGroupTest extends TestCase {

	
	public void testDateFormatter() {
		try {
			GoogleGroup gg = new GoogleGroup();
			String olddate = "Tue, 09 Oct 2012 09:45:01 UT";
			String expected = "09.10.2012 09:45:01";
			
			assertEquals("Oodatav aeg: 09.10.2012 09:45:01 ", expected, gg.dateFormatter(olddate));
			
		} catch (JAXBException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
